package com.xxx.pojo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.xxx.enums.StatusEnum;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("`home`")
public class Home {
    /**id**/
    private Long id;
    /**背景名称**/
    private String name;
    /**图片路径**/
    private String img;
    /**最近修改时间**/
    private LocalDateTime updateTime;
    /**状态 0:正常  1:禁用**/
    private StatusEnum status;
    /**是否删除 0:不删除  1:删除**/
    @TableLogic // 标记为逻辑删除字段
    @TableField("`delete`")
    private Integer delete;
}
